#ifndef __FS_H__
#define __FS_H__

#include "common.h"

int fs_open(const char *pathname, int flags, int mode);
ssize_t fs_read(int fd, void *buf, size_t len);
ssize_t fs_write(int fd, const void *buf, size_t len);
off_t fs_lseek(int fd, off_t offset, int whence);
size_t fs_filesz(int fd);
int fs_close(int fd);

size_t events_read(void *buf, size_t len);
void dispinfo_read(void *buf, off_t offset, size_t len);
void fb_write(const void *buf, off_t offset, size_t len);
enum {SEEK_SET, SEEK_CUR, SEEK_END};

#endif
